<template>
  <div class="recommend-module">
    <div class="module">
      <div class="tabs">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane name="较热文章">
            <span slot="label"
              ><i class="iconfont icon-dianzan" style="margin-right: 5px"></i
              >较热文章</span
            >
          </el-tab-pane>
          <el-tab-pane name="最新评论">
            <span slot="label"
              ><i class="iconfont icon-pinglun" style="margin-right: 5px"></i
              >最新评论</span
            >
          </el-tab-pane>
        </el-tabs>
      </div>
      <div class="callback">
        <RightSideList></RightSideList>
      </div>
    </div>
  </div>
</template>

<script>
import RightSideList from '@/components/RightSideList.vue';
export default {
  components: {
    RightSideList,
  },
  data() {
    return {
      activeName: '较热文章',
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>

<style lang="less" scoped>
.recommend-module {
  height: 100%;
  width: 100%;
}
::v-deep .el-tabs__nav-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
}
::v-deep .el-tabs__nav-wrap::after {
  background-color: transparent;
}
</style>
